<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="commontaglib"%>
<%
String path = request.getContextPath();

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
 
<html>
  <head>
    <link rel="stylesheet" href="<%=path%>/css/innerstyle.css" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<%=path%>/css/cupertino/jquery-ui.custom.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<%=path%>/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<%=path%>/css/ui.multiselect.css" />
    <script type="text/javascript" src="<%=path%>/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<%=path%>/js/jquery-ui.custom.min.js"></script>  
    <script type="text/javascript" src="<%=path%>/js/i18n/grid.locale-cn.js"></script> 
    <script type="text/javascript" src="<%=path%>/js/jquery.jqGrid.min.js"></script>
    <script type="text/javascript" src="<%=path%>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
    <style>
html, body {
	margin: 0;			 
	padding: 0;
	 
    font-size: 85%;
}
</style>
    
  </head>
<script>
   function importFile(){ 
   var lx = '${bblx}'; 
   alert($("#myFile").val());
               // alert(form1.uploadFile.value);              
                if($("#myFile").val().length>0)
                {
                $("#info").innerHTML = "导入中，请稍后....";
                form1.action = "<%=path%>/bbgl/impBdExcel.action?bblx="+lx;
                form1.submit();
                window.close();                    
                }else{
                   alert("请选择要导入的文件");
                    return;
                }
                
            }
            
 $(function(){ 
    $("#daor").button(); 
    $("#myFile").button();
    
 });
   
   </script>
  <body>
    <form  method="post" name="form1" id="form1" enctype="multipart/form-data">
            <table  width="64%" border="0" cellpadding="0" cellspacing="0">             
               
                <tr>
                    <td align="right">
                    	文件：
                    </td>
                    <td>
                        <input type="file" name="myFile" id="myFile" value="" class="longtextbox"/>
                    </td>
                </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td  colspan="2" align="center"><input id="daor" type="button" name="submit1" value=" 导 入 " onClick="importFile()" /></td>
                </tr>
            </table>
        </form>
        <div id="info"></div>
  </body>
</html>
